public class ConverterRegistry {
    private static final Map<String, String> CONVERTER_REQUIREMENTS = new HashMap<>();
    
    static {
        // 记录每种转换所需的外部依赖
        CONVERTER_REQUIREMENTS.put("excel-to-image", "Apache POI, Graphics2D");
        CONVERTER_REQUIREMENTS.put("pdf-to-image", "Apache PDFBox");
        CONVERTER_REQUIREMENTS.put("doc-to-pdf", "Apache POI, XDocReport");
    }
    
    public static void checkRequirements(FileFormat source, FileFormat target) {
        String key = source.getExtension() + "-to-" + target.getExtension();
        if (CONVERTER_REQUIREMENTS.containsKey(key)) {
            // 检查所需依赖是否可用
            checkDependencies(CONVERTER_REQUIREMENTS.get(key));
        }
    }
} 